# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-jaraco-itertools
pkgver=5.0.0
pkgrel=1
pkgdesc="jaraco.itertools"
url="https://github.com/jaraco/jaraco.itertools"
arch="noarch"
license="MIT"
depends="python3 py3-more-itertools py3-inflect"
makedepends="py3-setuptools py3-setuptools_scm py3-toml"
checkdepends="py3-pytest py3-pytest-black py3-pytest-flake8 py3-pytest-cov"
source="https://pypi.python.org/packages/source/j/jaraco.itertools/jaraco.itertools-$pkgver.tar.gz"
options="!check" # Black failure https://github.com/jaraco/jaraco.itertools/issues/11
builddir="$srcdir/jaraco.itertools-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="38ae2cbdd436b277e3d3c252fadeb5239e2d32b2291686b2a3dbaca69328392eb1db4318b2144954b17302e5b15b94ad89f1ea8a1b2e354deec7d4516bd7ec85  jaraco.itertools-5.0.0.tar.gz"
